Skip to content

fix(release): use postflight_steps for cask quarantine hook - #3084

Merged
vmaerten merged 1 commit into
go-task:mainfrom
kemosabe-afk:fix/cask-postflight-steps
Nov 1, 2026
Merged

vmaerten merged 1 commit into
go-task:mainfrom
kemosabe-afk:fix/cask-postflight-steps

Conversation

@kemosabe-afk

Copy link
Copy Markdown
Contributor

Fixes #3018.

Homebrew deprecated the postflight stanza, so every brew run that touches the go-task cask prints a warning. GoReleaser 2.19.0 added hooks.post.install_steps, which writes postflight_steps instead. The release workflow uses version: latest, so the next release picks it up.

The steps DSL does not allow system_command, so the xattr -h check is replaced with on_macos. This is the form shown in the GoReleaser homebrew_casks docs.

Checked by loading the resulting cask on Homebrew 7.0.11: it parses without the deprecation warning and brew style no longer reports Cask/InstallSteps.

@kemosabe-afk
kemosabe-afk force-pushed the fix/cask-postflight-steps branch from 839ec41 to 8adba1f Compare October 28, 2026 12:48
@vmaerten vmaerten self-assigned this Nov 1, 2026
@vmaerten
vmaerten self-requested a review November 1, 2026 12:52
@vmaerten vmaerten changed the title fix: use postflight_steps for cask quarantine hook fix(release): use postflight_steps for cask quarantine hook Nov 1, 2026
@vmaerten vmaerten added the area: releasing Changes related to the release process. label Nov 1, 2026
@vmaerten

vmaerten commented Nov 1, 2026

Copy link
Copy Markdown
Member

Thanks for the contribution!

@vmaerten
vmaerten merged commit f4120c8 into go-task:main Nov 1, 2026
20 checks passed
vmaerten added a commit that referenced this pull request Nov 1, 2026
@kemosabe-afk
kemosabe-afk deleted the fix/cask-postflight-steps branch November 2, 2026 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: releasing Changes related to the release process.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Homebrew warning: postflight is deprecated; use postflight_steps

2 participants